<?php
/**
 * Created by PhpStorm.
 * BuyUser: u
 * Date: 2018/11/8
 * Time: 11:36
 */
/***********************************  Logic组件  ***********************************************/
//添加组件

//测试组件
Yii::$container->set('common\\logics\\test\\ITest','common\\logics\\test\\TestLogic');
Yii::$container->set('testService','common\\logics\\test\\ITest');

Yii::$container->set('common\\sources\\read\\test\\ITestAccess','common\\sources\\read\\test\\TestAccess');
Yii::$container->set('RTestAccess','common\\sources\\read\\test\\ITestAccess');

Yii::$container->set('common\\sources\\write\\test\\ITestAccess', 'common\\sources\\write\\test\\TestAccess');
Yii::$container->set('WTestAccess','common\\sources\\write\\test\\ITestAccess');

//买手用户注册登陆组件
Yii::$container->set('BuyUserService','common\\logics\\buyuser\\IBuyUser');
Yii::$container->set('common\\logics\\buyuser\\IBuyUser','common\\logics\\buyuser\\BuyUserLogic');

Yii::$container->set('RBuyUserAccess','common\\sources\\read\\buyuser\\IBuyUserAccess');
Yii::$container->set('common\\sources\\read\\buyuser\\IBuyUserAccess','common\\sources\\read\\buyuser\\BuyUserAccess');

Yii::$container->set('WBuyUserAccess','common\\sources\\write\\buyuser\\IBuyUserAccess');
Yii::$container->set('common\\sources\\write\\buyuser\\IBuyUserAccess', 'common\\sources\\write\\buyuser\\BuyUserAccess');
//买手用户中心
Yii::$container->set('RBuyUserAcountAccess','common\\sources\\read\\buyuser\\IBuyUserAcountAccess');
Yii::$container->set('common\\sources\\read\\buyuser\\IBuyUserAcountAccess','common\\sources\\read\\buyuser\\BuyUserAcountAccess');

//绑定淘宝天猫账号
Yii::$container->set('TaoBaoService', 'common\\logics\\taobao\\ITaoBao');
Yii::$container->set('common\\logics\\taobao\\ITaoBao','common\\logics\\taobao\\TaoBaoLogic');

Yii::$container->set('WTaoBaoAccess', 'common\\sources\\write\\taobao\\ITaoBaoAccess');
Yii::$container->set('common\\sources\\write\\taobao\\ITaoBaoAccess','common\\sources\\write\\taobao\\TaoBaoAccess');

Yii::$container->set("RTaoBaoAccess","common\\sources\\read\\taobao\\ITaoBaoAccess");
Yii::$container->set("common\\sources\\read\\taobao\\ITaoBaoAccess","common\\sources\\read\\taobao\\TaoBaoAccess");

//店铺类别
Yii::$container->set("CategoryService","common\\logics\\category\\ICategory");
Yii::$container->set("common\\logics\\category\\ICategory","common\\logics\\category\\CategoryLogic");

Yii::$container->set("RCategoryAccess","common\\sources\\read\\category\\ICategoryAccess");
Yii::$container->set("common\\sources\\read\\category\\ICategoryAccess","common\\sources\\read\\category\\CategoryAccess");
//绑定店铺
Yii::$container->set("ShopService","common\\logics\\shop\\IShop");
Yii::$container->set("common\\logics\\shop\\IShop","common\\logics\\shop\\ShopLogic");

Yii::$container->set("WShopAccess","common\\sources\\write\\shop\\IShopAccess");
Yii::$container->set("common\\sources\\write\\shop\\IShopAccess","common\\sources\\write\\shop\\ShopAccess");

Yii::$container->set("RShopAccess","common\\sources\\read\\shop\\IShopAccess");
Yii::$container->set("common\\sources\\read\\shop\\IShopAccess","common\\sources\\read\\shop\\ShopAccess");

//爬虫爬取数据
Yii::$container->set("ReptileService","common\\logics\\reptile\\IReptile");
Yii::$container->set("common\\logics\\reptile\\IReptile","common\\logics\\reptile\\ReptileLogic");

//商家用户中心 商家账号表
Yii::$container->set("RBusinessAcountAccess","common\\sources\\read\\businessacount\\IBusinessAcountAccess");
Yii::$container->set("common\\sources\\read\\businessacount\\IBusinessAcountAccess","common\\sources\\read\\businessacount\\BusinessAcountAccess");

Yii::$container->set("WBusinessAcountAccess","common\\sources\\write\\businessacount\\IBusinessAcountAccess");
Yii::$container->set("common\\sources\\write\\businessacount\\IBusinessAcountAccess","common\\sources\\write\\businessacount\\BusinessAcountAccess");

//图片上传组件
Yii::$container->set('UploadService','common\\logics\\upload\\IUpload');
Yii::$container->set('common\\logics\\upload\\IUpload','common\\logics\\upload\\UploadLogic');

//地区联动组件
Yii::$container->set('AreaService','common\\logics\\area\\IArea');
Yii::$container->set('common\\logics\\area\\IArea','common\\logics\\area\\AreaLogic');

Yii::$container->set('RAreaAccess','common\\sources\\read\\area\\IAreaAccess');
Yii::$container->set('common\\sources\\read\\area\\IAreaAccess','common\\sources\\read\\area\\AreaAccess');

//充值记录临时记录
Yii::$container->set("RBuyRechargeRecordBankAccess","common\\sources\\read\\buyrechargerecordbank\\IBuyRechargeRecordBankAccess");
Yii::$container->set("common\\sources\\read\\buyrechargerecordbank\\IBuyRechargeRecordBankAccess","common\\sources\\read\\buyrechargerecordbank\\BuyRechargeRecordBankAccess");

Yii::$container->set("WBuyRechargeRecordBankAccess","common\\sources\\write\\buyrechargerecordbank\\IBuyRechargeRecordBankAccess");
Yii::$container->set("common\\sources\\write\\buyrechargerecordbank\\IBuyRechargeRecordBankAccess","common\\sources\\write\\buyrechargerecordbank\\BuyRechargeRecordBankAccess");

//公告
Yii::$container->set("NoticeService","common\\logics\\notice\\INotice");
Yii::$container->set("common\\logics\\notice\\INotice","common\\logics\\notice\\NoticeLogic");

Yii::$container->set("RNoticeAccess","common\\sources\\read\\notice\\INoticeAccess");
Yii::$container->set("common\\sources\\read\\notice\\INoticeAccess","common\\sources\\read\\notice\\NoticeAccess");

//银行卡四要素

Yii::$container->set('common\\logics\\bank\\IBank','common\\logics\\bank\\BankLogic');
Yii::$container->set('BankService','common\\logics\\bank\\IBank');

Yii::$container->set('RBankAccess','common\\sources\\read\\bank\\IBankAccess');
Yii::$container->set('common\\sources\\read\\bank\\IBankAccess','common\\sources\\read\\bank\\BankAccess');

Yii::$container->set('WBankAccess','common\\sources\\write\\bank\\IBankAccess');
Yii::$container->set('common\\sources\\write\\bank\\IBankAccess', 'common\\sources\\write\\bank\\BankAccess');

//快钱支付
Yii::$container->set("KqPayService","common\\logics\\kq\\IKqPay");
Yii::$container->set("common\\logics\\kq\\IKqPay","common\\logics\\kq\\KqPayLogic");

//商家发布任务流程
Yii::$container->set("PublishTaskService","common\\logics\\publishtask\\IPublishTask");
Yii::$container->set("common\\logics\\publishtask\\IPublishTask","common\\logics\\publishtask\\PublishTaskLogic");

//商家发布任务商品信息
Yii::$container->set("TaskCommodService","common\\logics\\taskcommod\\ITaskCommod");
Yii::$container->set("common\\logics\\taskcommod\\ITaskCommod","common\\logics\\taskcommod\\TaskCommodLogic");

Yii::$container->set("WTaskCommodAccess","common\\sources\\write\\taskcommod\\ITaskCommodAccess");
Yii::$container->set("common\\sources\\write\\taskcommod\\ITaskCommodAccess","common\\sources\\write\\taskcommod\\TaskCommodAccess");

Yii::$container->set("RTaskCommodAccess","common\\sources\\read\\taskcommod\\ITaskCommodAccess");
Yii::$container->set("common\\sources\\read\\taskcommod\\ITaskCommodAccess","common\\sources\\read\\taskcommod\\TaskCommodAccess");

//商家发布任务  增值服务
Yii::$container->set("ValueService","common\\logics\\valueservice\\IValueService");
Yii::$container->set("common\\logics\\valueservice\\IValueService","common\\logics\\valueservice\\ValueServiceLogic");

Yii::$container->set("WValueServiceAccess","common\\sources\\write\\valueservice\\IValueServiceAccess");
Yii::$container->set("common\\sources\\write\\valueservice\\IValueServiceAccess","common\\sources\\write\\valueservice\\ValueServiceAccess");

Yii::$container->set("RValueServiceAccess","common\\sources\\read\\valueservice\\IValueServiceAccess");
Yii::$container->set("common\\sources\\read\\valueservice\\IValueServiceAccess","common\\sources\\read\\valueservice\\ValueServiceAccess");

//增值服务收费表
Yii::$container->set("WServiceChargeAccess","common\\sources\\write\\servicecharge\\IServiceChargeAccess");
Yii::$container->set("common\\sources\\write\\servicecharge\\IServiceChargeAccess","common\\sources\\write\\servicecharge\\ServiceChargeAccess");

//短信
Yii::$container->set('MesgService','common\\logics\\message\\IMessage');
Yii::$container->set('common\\logics\\message\\IMessage','common\\logics\\message\\MesgLogic');

Yii::$container->set('RMesgAccess','common\\sources\\read\\message\\IMesgAccess');
Yii::$container->set('common\\sources\\read\\message\\IMesgAccess','common\\sources\\read\\message\\MesgAccess');

Yii::$container->set('WMesgAccess','common\\sources\\write\\message\\IMesgAccess');
Yii::$container->set('common\\sources\\write\\message\\IMesgAccess', 'common\\sources\\write\\message\\MesgAccess');

/***  子订单  ***/
Yii::$container->set('RTaskOrderAccess','common\\sources\\read\\taskorder\\ITaskOrderAccess');
Yii::$container->set('common\\sources\\read\\taskorder\\ITaskOrderAccess','common\\sources\\read\\taskorder\\TaskOrderAccess');

Yii::$container->set('WTaskOrderAccess','common\\sources\\write\\taskorder\\ITaskOrderAccess');
Yii::$container->set('common\\sources\\write\\taskorder\\ITaskOrderAccess','common\\sources\\write\\taskorder\\TaskOrderAccess');

/** 图片任务发布 ***/
Yii::$container->set("TaskShopService","common\\logics\\taskshop\\ITaskShop");
Yii::$container->set("common\\logics\\taskshop\\ITaskShop","common\\logics\\taskshop\\TaskShopLogic");

Yii::$container->set("RTaskShopImageAccess","common\\sources\\read\\taskshopimage\\ITaskShopImageAccess");
Yii::$container->set("common\\sources\\read\\taskshopimage\\ITaskShopImageAccess","common\\sources\\read\\taskshopimage\\TaskShopImageAccess");

Yii::$container->set("WTaskShopImageAccess","common\\sources\\write\\taskshopimage\\ITaskShopImageAccess");
Yii::$container->set("common\\sources\\write\\taskshopimage\\ITaskShopImageAccess","common\\sources\\write\\taskshopimage\\TaskShopImageAccess");

Yii::$container->set("WTaskCommodKeywordAccess","common\\sources\\write\\taskcommodkeywords\\ITaskCommodKeywordAccess");
Yii::$container->set("common\\sources\\write\\taskcommodkeywords\\ITaskCommodKeywordAccess","common\\sources\\write\\taskcommodkeywords\\TaskCommodKeywordAccess");

Yii::$container->set("RTaskCommodKeywordAccess","common\\sources\\read\\taskcommodkeywords\\ITaskCommodKeywordAccess");
Yii::$container->set("common\\sources\\read\\taskcommodkeywords\\ITaskCommodKeywordAccess","common\\sources\\read\\taskcommodkeywords\\TaskCommodKeywordAccess");

Yii::$container->set("RValueServiceProhibitAccess","common\\sources\\read\\valueserviceprohibit\\IValueServiceProhibitAccess");
Yii::$container->set("common\\sources\\read\\valueserviceprohibit\\IValueServiceProhibitAccess","common\\sources\\read\\valueserviceprohibit\\ValueServiceProhibitAccess");

Yii::$container->set("WValueServiceProhibitAccess","common\\sources\\write\\valueserviceprohibit\\IValueServiceProhibitAccess");
Yii::$container->set("common\\sources\\write\\valueserviceprohibit\\IValueServiceProhibitAccess","common\\sources\\write\\valueserviceprohibit\\ValueServiceProhibitAccess");

/***  押金记录 ****/
Yii::$container->set("DepositRecordService","common\\logics\\depositrecord\\IDepositRecord");
Yii::$container->set("common\\logics\\depositrecord\\IDepositRecord","common\\logics\\depositrecord\\DepositRecordLogic");

Yii::$container->set("RBusinessDepositRecordAccess","common\\sources\\read\\businessdepositrecord\\IBusinessDepositRecordAccess");
Yii::$container->set("common\\sources\\read\\businessdepositrecord\\IBusinessDepositRecordAccess","common\\sources\\read\\businessdepositrecord\\BusinessDepositRecordAccess");

Yii::$container->set("WBusinessDepositRecordAccess","common\\sources\\write\\businessdepositrecord\\IBusinessDepositRecordAccess");
Yii::$container->set("common\\sources\\write\\businessdepositrecord\\IBusinessDepositRecordAccess","common\\sources\\write\\businessdepositrecord\\BusinessDepositRecordAccess");

/***  花椒记录 ***/
Yii::$container->set("PepperRecordService","common\\logics\\pepperrecord\\IPepperRecord");
Yii::$container->set("common\\logics\\pepperrecord\\IPepperRecord","common\\logics\\pepperrecord\\PepperRecordLogic");

Yii::$container->set("RBusinessPepperRecordAccess","common\\sources\\read\\businesspepperrecord\\IBusinessPepperRecordAccess");
Yii::$container->set("common\\sources\\read\\businesspepperrecord\\IBusinessPepperRecordAccess","common\\sources\\read\\businesspepperrecord\\BusinessPepperRecordAccess");

Yii::$container->set("WBusinessPepperRecordAccess","common\\sources\\write\\businesspepperrecord\\IBusinessPepperRecordAccess");
Yii::$container->set("common\\sources\\write\\businesspepperrecord\\IBusinessPepperRecordAccess","common\\sources\\write\\businesspepperrecord\\BusinessPepperRecordAccess");


/** 任务日志记录 ***/
Yii::$container->set("WTaskCommodLogAccess","common\\sources\\write\\taskcommodlog\\ITaskCommodLogAccess");
Yii::$container->set("common\\sources\\write\\taskcommodlog\\ITaskCommodLogAccess","common\\sources\\write\\taskcommodlog\\TaskCommodLogAccess");

/** 好评关键字 ***/
Yii::$container->set("RPraiseKeywordsAccess","common\\sources\\read\\praisekeywords\\IPraiseKeywordsAccess");
Yii::$container->set("common\\sources\\read\\praisekeywords\\IPraiseKeywordsAccess","common\\sources\\read\\praisekeywords\\PraiseKeywordsAccess");

Yii::$container->set("WPraiseKeywordsAccess","common\\sources\\write\\praisekeywords\\IPraiseKeywordsAccess");
Yii::$container->set("common\\sources\\write\\praisekeywords\\IPraiseKeywordsAccess","common\\sources\\write\\praisekeywords\\PraiseKeywordsAccess");

/** 充值记录***/
Yii::$container->set("RechargeRecordService","common\\logics\\rechargerecord\\IRechargeRecord");
Yii::$container->set("common\\logics\\rechargerecord\\IRechargeRecord","common\\logics\\rechargerecord\\RechargeRecordLogic");

Yii::$container->set("RBusinessRechargeRecordAccess","common\\sources\\read\\businessrechargerecord\\IBusinessRechargeRecordAccess");
Yii::$container->set("common\\sources\\read\\businessrechargerecord\\IBusinessRechargeRecordAccess","common\\sources\\read\\businessrechargerecord\\BusinessRechargeRecordAccess");

Yii::$container->set("WBusinessRechargeRecordAccess","common\\sources\\write\\businessrechargerecord\\IBusinessRechargeRecordAccess");
Yii::$container->set("common\\sources\\write\\businessrechargerecord\\IBusinessRechargeRecordAccess","common\\sources\\write\\businessrechargerecord\\BusinessRechargeRecordAccess");


/** 提现记录 ***/
Yii::$container->set("CashRecordService","common\\logics\\cashrecord\\ICashRecord");
Yii::$container->set("common\\logics\\cashrecord\\ICashRecord","common\\logics\\cashrecord\\CashRecordLogic");

Yii::$container->set("RCashRecordAccess","common\\sources\\read\\cashrecord\\ICashRecordAccess");
Yii::$container->set("common\\sources\\read\\cashrecord\\ICashRecordAccess","common\\sources\\read\\cashrecord\\CashRecordAccess");

Yii::$container->set("WCashRecordAccess","common\\sources\\write\\cashrecord\\ICashRecordAccess");
Yii::$container->set("common\\sources\\write\\cashrecord\\ICashRecordAccess","common\\sources\\write\\cashrecord\\CashRecordAccess");

Yii::$container->set("WRegCodeAccess","common\\sources\\write\\regcode\\IRegCodeAccess");
Yii::$container->set("common\\sources\\write\\regcode\\IRegCodeAccess","common\\sources\\write\\regcode\\RegCodeAccess");

Yii::$container->set("RRegCodeAccess","common\\sources\\read\\regcode\\IRegCodeAccess");
Yii::$container->set("common\\sources\\read\\regcode\\IRegCodeAccess","common\\sources\\read\\regcode\\RegCodeAccess");

//注册二维码
Yii::$container->set("RRegQrCodeAccess","common\\sources\\read\\regqrcode\\IRegQrCodeAccess");
Yii::$container->set("common\\sources\\read\\regqrcode\\IRegQrCodeAccess","common\\sources\\read\\regqrcode\\RegQrCodeAccess");

/** 子任务订单状态记录 ***/
Yii::$container->set("WBuyTaskOrderLogAccess","common\\sources\\write\\taskorderlog\\IBuyTaskOrderLogAccess");
Yii::$container->set("common\\sources\\write\\taskorderlog\\IBuyTaskOrderLogAccess","common\\sources\\write\\taskorderlog\\BuyTaskOrderLogAccess");

/** 商家邀请人 ***/
Yii::$container->set("BusInviteService","common\\logics\\businvite\\IBusInvite");
Yii::$container->set("common\\logics\\businvite\\IBusInvite","common\\logics\\businvite\\BusInviteLogic");

/** 买手花椒记录 **/
Yii::$container->set("RPepperRecordAccess","common\\sources\\read\\pepperrecord\\IPepperRecordAccess");
Yii::$container->set("common\\sources\\read\\pepperrecord\\IPepperRecordAccess","common\\sources\\read\\pepperrecord\\PepperRecordAccess");

/** 外部网址支付 **/
Yii::$container->set("KqService","common\\logics\\testkq\\IKq");
Yii::$container->set("common\\logics\\testkq\\IKq","common\\logics\\testkq\\KqLogic");